//
//  TerrainLayer.m
//  ShoutBoss
//
//  Created by Luck Mstone on 6/15/09.
//  Copyright 2009 MS. All rights reserved.
//

#import "TerrainLayer.h"
#import "Trap.h"
#import "Road.h"
#import "Goods.h"
#import "Constants.h"

@implementation TerrainLayer

-(id) init
{
	self = [super init];
	if(self != nil){		
		//初始化工作
		
		//添加陷阱
		Trap *trap = [Trap node];
		[self addChild:trap];
		
		//添加道路
		Road *road = [Road node];
		[self addChild:road];
		
		//添加道具
		Goods *goods = [Goods node];
		[self addChild:goods z:0 tag:kTagGoods];
	}
	
	return self;
}

@end
